function chackNative() {
    //检测native环境
    var isNative = ''
    try {
        //native环境 
        // console.log('test ntive', native);
        native.getDeviceInfo();
        // console.log('chack is native');
        // Vue.prototype.NATIVEDATA = JSON.parse(native.getDeviceInfo());
        // Vue.prototype.ccIsNative = true;
        // this.GLOBAL_.ccRequest.setNative(JSON.parse(native.getDeviceInfo()));
        return true
    } catch (error) {
        // console.log(error);

        console.log("chack 沒有native運行時環境utils！");
        return false
    }
}

/**分割url方法，页面统一调用
 * @param  {} pageName
 */
function splitUrl(pageName) {
    return window.location.href.split('#/app')[0] + '#/app/' + pageName
}



export default {
    chackNative,
    splitUrl
}